// 模拟后端接口
import Mock from "mockjs";
import homeApi from './mockData/home'
import user from './mockData/user'
import login from './mockData/login'
console.log(Mock);
console.log("Mock.js configuration starting...");
Mock.mock('/api/home/phonedata', homeApi.getStatisticalData);
Mock.mock(/api\/user\/getTabData/, user.getUserList);
Mock.mock('/api/user/addTabData', 'post', user.createUser);
Mock.mock('/api/user/delTabData', 'post', user.deleteUser);
Mock.mock('/api/user/upTabData', 'post', user.updateUser);
// Mock.mock('/api/login', 'post', user.updateUser);
Mock.mock(/api\/login\/getMenu/, 'post', login.getMenu)

